<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
  <base href="<%=basePath%>">
      <meta charset="UTF-8">
      <title>拉勾网-最专业的互联网招聘平台</title>
    <title>异步加载地图</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <style>
    #baidu {
        overflow: hidden;
        width: 100%;
        height: 100%;
        margin: 0;
        font-family: "微软雅黑";
    }
    </style>

<div id="baidu" ></div>


<script>
function loadJScript() {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = '//api.map.baidu.com/api?type=webgl&v=1.0&ak=VKpFi7X0rhQ6P7VGRactH7OH2hxzdHY5&callback=init';
    document.body.appendChild(script);
}
function init() {
    var map = new BMapGL.Map('baidu'); // 创建Map实例
    map.centerAndZoom(new BMapGL.Point(116.404, 39.915), 11);
	var local = new BMapGL.LocalSearch(map, {
		renderOptions:{map: map}
	});
	local.search("${positionList[0].getPaddress()}");
	map.centerAndZoom(point, 18);
    map.enableScrollWheelZoom(); // 启用滚轮放大缩小
}       
	
</script>